import request from '@/utils/request.js'
const state = {
	 cList:[]
}	
const mutations = {
	//唯一可以修改仓库数据的地方
	CATEGORYLISTS(state,cList){
		state.cList = cList;
	}
};
const actions = {
    //获取分类数据
	async categoryLists({commit,state,dispatch}){
		let result =  await request("/getCateGoryData");
		commit('CATEGORYLISTS',result);
	}
};
const getters = {
	
};
//对外暴露小仓库
export default {
	state,
	mutations,
	actions,
	getters
}
